import request from '@/utils/request'

export default {
  addCourseInfo(courseInfoVo) {
    return request({
      url: `/eduservice/course/addCourseInfo`,
      method: 'post',
      data: courseInfoVo
    })
  },
  getAllTeacher() {
    return request({
      url: `/eduservice/teacher/getAllTeacher`,
      method: 'get'
    })
  },
  //根据课程id获取课程信息
  getCourseInfo(courseId){
    return request({
      url: `/eduservice/course/getCourseInfo/` + courseId,
      method: 'get'
    })
  },
  //修改课程信息
  updateCourseInfo(courseInfoVo){
    return request({
      url: `/eduservice/course/updateCourseInfo`,
      method: 'post',
      data: courseInfoVo
    })
  }
}
